From: Jasper St. Pierre Date: Tue, 3 Dec 2013 22:05:06 +0000 (-0500) Subject: background: Remove the system noise content when not in use X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3021 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7f3aadc1573589bd169e25a61987d94eb27e4129;p=gnome-shell.git background: Remove the system noise content when not in use https://bugzilla.gnome.org/show_bug.cgi?id=719803 --- diff --git a/js/ui/background.js b/js/ui/background.js index 5f11e5777..af69f9dcd 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -634,7 +634,13 @@ const SystemBackground = new Lang.Class({ this.emit('loaded'); }) }); - } + + this.actor.connect('destroy', Lang.bind(this, this._onDestroy)); + }, + + _onDestroy: function() { + this._cache.removeImageContent(this.actor.content); + }, }); Signals.addSignalMethods(SystemBackground.prototype);